package com.zack.shop.mvp.http.api.service;

import com.zack.shop.mvp.http.entity.BaseResponse;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @Author 张迁-zhangqian
 * @Data 2018/5/10 下午2:28
 * @Package com.zack.shop.mvp.http.api.service
 **/
public interface MyMoneyService {
    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/customer/my_balance")
    Observable<BaseResponse> myBalance(@Body RequestBody info);

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/customer/recharge")
    Observable<BaseResponse> recharge(@Body RequestBody info);


    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/customer/my_performance")
    Observable<BaseResponse> myPerformance(@Body RequestBody info);

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/customer/withdraw_performance")
    Observable<BaseResponse> withdrawPerformance(@Body RequestBody info);


}
